package cqie.personal.frame.bo;


import org.springframework.web.multipart.MultipartFile;

public class AddModifyMenuBO {
    private Integer id;
    private String menuName;
    //private MultipartFile menuImg;
    private Integer menuFather;
    private Boolean menuAbandon;
    private String menuAddress;
    private Integer uid;

    public String getMenuAddress() {
        return menuAddress;
    }

    public void setMenuAddress(String menuAddress) {
        if(!menuAddress.equals("")) {
            if(!menuAddress.replace(" ", "").equals("")) {
                this.menuAddress = menuAddress;
            }
        }
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        if(!menuName.equals("")) {
            if(!menuName.replace(" ", "").equals("")) {
                this.menuName = menuName;
            }
        }
    }

//    public MultipartFile getMenuImg() {
//        return menuImg;
//    }
//
//    public void setMenuImg(MultipartFile menuImg) {
//        this.menuImg = menuImg;
//    }

    public Integer getMenuFather() {
        return menuFather;
    }

    public void setMenuFather(Integer menuFather) {
        if(menuFather!=0)
        this.menuFather = menuFather;
    }

    public Boolean getMenuAbandon() {
        return menuAbandon;
    }

    public void setMenuAbandon(Boolean menuAbandon) {
        this.menuAbandon = menuAbandon;
    }
}
